#!/usr/bin/env node

const fs = require('fs'),
      fileName = process.argv[2];

let fid = fs.openSync(fileName, 'r'),
    buf;

buf = fs.readFileSync(fid);//高级API

console.log(buf.toString('utf8'));

fs.closeSync(fid);


